{% extends "::base.html.twig" %}

{% block subtitle %}Importer un fichier .ass{% endblock subtitle %}

{% block body %}

    <form method="post" {{ form_enctype(form) }}>
        
        {% if form_errors(form.assfile) %}
        <div class="alert alert-danger">
        {{ form_errors(form.assfile) }}
        </div>
        {% endif %}
        
        <div class="form-group {% if form_errors(form.name) %} has-error {% endif %}">
            {{ form_widget(form.name, {'attr': {'class': 'form-control input-lg', 'placeholder': 'Nom du fichier'}}) }}
            <p class="text-muted">Laisser vide pour prendre le nom de l'ASS</p>
        </div>
        
        
        <div class="form-group {% if form_errors(form.assfile) %} has-error {% endif %}">
            {{ form_widget(form.assfile) }}
        </div>
        
        {{ form_rest(form) }}
        
        <div class="form-group">
            <input type="submit" class="btn btn-lg btn-success btn-block" />
        </div>
        
    </form>

{% endblock %}